#ifndef     __PROTO_H
#define     __PROTO_H

#include <stdint.h>

namespace proto {

constexpr uint8_t HEAD0 = 0xE1;
constexpr uint8_t HEAD1 = 0x1E;
constexpr uint8_t END = 0xEF;

namespace type {

constexpr uint8_t ACK = 0x00;
constexpr uint8_t PING = 0x01;
constexpr uint8_t PONG = 0x02;
constexpr uint8_t REQ = 0x03;
constexpr uint8_t RES = 0x04;
constexpr uint8_t SESSION = 0x05;
constexpr uint8_t SIMPLE_REQ = 0x06;
constexpr uint8_t SIMPLE_RES = 0x07;
constexpr uint8_t NOTIFY = 0x08;
constexpr uint8_t NOTIFY_ACK = 0x09;

}

namespace cmd {

constexpr uint8_t GET_TASK_INFO = 0x02;

}

}

#endif
